<template>
	<div :id="id">
		<slot></slot>
	</div>
</template>

<script lang="ts" setup>
import { nextTick, onBeforeMount } from "vue";
const props = defineProps<{ id: string; repaint?: () => void; unMount?: () => void }>();
onBeforeMount(async () => {
	await nextTick();
	if (props.repaint) {
		props.repaint();
	}
});
</script>
